﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BI.CF.Model;


namespace BI.CF.IDAL
{
    public interface BulletinIDAL
    {
        /// <summary>
        /// 广告标题显示
        /// </summary>
        /// <returns></returns>
        List<BulletinModel> BulletinShowOne(int tid);
        //List<BulletinModel> BulletinShowTwo();
        //List<BulletinModel> BulletinShowThree();
        //List<BulletinModel> BulletinShowFour();
        /// <summary>
        /// 广告详细信息
        /// </summary>
        /// <returns></returns>
         BulletinModel  BulletinContentShow(int id);
        
        /// <summary>
        ///  根据标题名称查询广告信息ID
        /// </summary>
        /// <returns></returns>
        int BulletinIDshow(string name);
        /// <summary>
        /// 修改浏览量
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool   BulletinUpdatePV(int id);
        



        //后台数据处理

     
        //List<BulletinModel> BulletinShowTwo();
        //List<BulletinModel> BulletinShowThree();
        //List<BulletinModel> BulletinShowFour();
        /// <summary>
        /// 广告类别显示
        /// </summary>
        /// <returns></returns>
        List<PublishTypeModel> PublishTypeShow();
        /// <summary>
        /// 修改反填广告类别信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        PublishTypeModel fantian(int id);
        /// <summary>
        /// 广告类型修改
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        bool PublishTypeUpdate(PublishTypeModel upd);
        bool BulletinUpdate(BulletinModel upd);
        /// <summary>
        /// 广告类型删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool PublishTypeDelete(int id);
        /// <summary>
        /// 广告详细内容的显示
        /// </summary>
        /// <returns></returns>
        List<BulletinModel> BulletinShowAll(int pageSize, int pageIndex, string name);
        /// <summary>
        /// 查询广告类型总条数
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        int BulletinCount(string name);

        BulletinModel Bullid(int id);


        bool BullUpt(BulletinModel upd);

    }
}
